package vo;

import java.util.Date;
import java.util.List;

import po.TeacherPO;

public class TeacherVO {
	private TeacherPO teacherInfo;
	private List<CourseVO> courseList;
	public TeacherVO(TeacherPO teacherInfo, List<CourseVO> courseList) {
		super();
		this.teacherInfo = teacherInfo;
		this.courseList = courseList;
	}
	public String getTeacherID(){
		return teacherInfo.getTeacherID();
	}
	public String getName(){
		return teacherInfo.getName();
	}
	public String getCollegeID(){
		return teacherInfo.getCollegeID();
	}
	public int getWorkStartYear(){
		return teacherInfo.getWorkStartYear();
	}
	public Date getBirthday(){
		return teacherInfo.getBirthday();
	}
	public List<CourseVO> getCourses() {
		return courseList;
	}
	@Override
	public String toString() {
		return "TeacherVO [teacherInfo=" + teacherInfo + ", courseList="
				+ courseList + "]";
	}
	public String[][] couListToDyadicArray(){
		String[][] array = null;
		int i=0;
		for(CourseVO c : courseList){
			array[i][0] = c.getCourseID();
			array[i][1] = c.getCourseBasicVO().getCourseName();
			i++;
		}
		return array;
	}
	
}
